package com.mybatis.bean;

import java.util.List;

public class Role {
    private Integer id;
    private String roleName;
    private List<Right> rightList;

    public List<Right> getRightList() {
        return rightList;
    }

    public void setRightList(List<Right> rightList) {
        this.rightList = rightList;
    }

    public Role(String roleName) {
        this.roleName = roleName;
    }

    public Role() {
    }


    //不在本类中自动生成的构造方法,方法体内没有具体内容
    /*public Role(Integer id) {
    }*/
    public Role(Integer id) {
        this.id=id;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                '}';
    }

}
